#ifndef MAP_H_INCLUDED
#define MAP_H_INCLUDED

#include <SFML/Graphics.hpp>
#include "Tool.h"

/**********************************

Class Map
Param : float position_x, float position_y

**********************************/

class Map{

public :
    Map(float x=0, float y=0);
    ~Map();
    void drawMap(sf::RenderWindow &app);
    void changeTabValue(int i, int j, int v);
    void setEvent(sf::Event &event);
    int getTabValue(int i, int j);
    int** getMap();
    void setMap(int **tab);

private :
    int **tableau;
    int showi, showj;
    float positionX;
    float positionY;
    sf::Sprite intToSprite(int i, int j);
    bool changeOn;

};

#endif // MAP_H_INCLUDED
